package linuxbox.filelib.logic;

import java.util.Calendar;
import java.util.Iterator;
import java.util.Collection;
import java.util.ArrayList;
/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class SearchEntry
{
  public static final int SIZEUNIT_BYTES = 0;
  public static final int SIZEUNIT_KBYTES = 1;
  public static final int SIZEUNIT_MBYTES = 2;

  public String searchText="";
  public boolean searchName;
  public boolean searchFilename;
  public boolean searchFoldername;

  public boolean searchByTime;
  public Calendar modifiedFrom = Calendar.getInstance();
  public Calendar modifiedTo = Calendar.getInstance();

  public boolean searchBySize;
  public boolean isSizeGreater = true;
  public String size = "";
  public int sizeUnit = 0; //0 -- Bytes
                           //1 -- KBytes
                           //2 -- MBytes

  public String sortBy="name";
  public boolean sortAsc=true;

  public Iterator resultIt = null;
  public Collection validationMsgs = new ArrayList();

  public SearchEntry()
  {
  }

}
